package com.freesky.provider.content.util;

import com.freesky.common.dao.entity.Panel;
import com.freesky.common.pojo.ZTreeNode;


/**
 * @author Freesky
 * @date 2017/8/25
 */
public class VOUtil {
    public static ZTreeNode changePanelToZTreeNode(Panel panel){
        ZTreeNode zTreeNode =new ZTreeNode();
        zTreeNode.setId(panel.getId());
        zTreeNode.setIsParent(false);
        zTreeNode.setPId(0L);
        zTreeNode.setName(panel.getName());
        zTreeNode.setSortOrder(panel.getSortOrder());
        zTreeNode.setState(panel.getState());
        zTreeNode.setRemark(panel.getRemark());
        zTreeNode.setLimitNum(panel.getLimitNum());
        zTreeNode.setType(panel.getType());
        return zTreeNode;
    }




}
